
let zzw = function () {
    let week = null
    let nowdate = new Date()
    let year = nowdate.getFullYear()
    let month = nowdate.getMonth() + 1
    let date = nowdate.getDate()
    let day = nowdate.getDay()
    week = ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"]
    let h = nowdate.getHours() < 10 ? "0" + nowdate.getHours() : "" + nowdate.getHours()
    let m = nowdate.getMinutes() < 10 ? "0" + nowdate.getMinutes() : "" + nowdate.getMinutes()
    let s = nowdate.getSeconds() < 10 ? "0" + nowdate.getSeconds() : "" + nowdate.getSeconds()

    return year + "年" + month + "月" + date + "日" + week[day] + " " + h + ":" + m + ":" + s;
}
console.log(zzw());
export default zzw